package springOne.HelloWorld;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloTwo {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext(
				"springOne/HelloWorld/applicationContext.xml");
		System.out.println("======容器创建=======");
		HelloOne helloOne = (HelloOne) ac.getBean("helloOne");
		System.out.println(helloOne);
		helloOne.sayHello();
		ac.destroy();
	}
}
